package com.mei.demo.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mei.demo.domain.City;

/**
 * @author mei.xiaoliang@qq.com
 */
@Mapper
public interface CityDao extends BaseMapper<City> {

    /**
     * 
     * @param page
     * @param string
     * @return
     */
    Page<City> searchPage(@Param("page") Page<City> page, @Param("name") String name);

    City browse(Long id);

    int update(City city);

    int delete();

    int deleteOne(int id);

}